package main

import "fmt"

type Triangle struct {
	Length, Width float64
}

func (t Triangle) Area() float64 {
	return t.Length * t.Width
}
func (t Triangle) Perimeter() float64 {
	return 2 * (t.Length + t.Width)
}

func main() {
	var t = Triangle{Length: 3, Width: 4}
	fmt.Printf("Type of t: %T, Area: %v, Perimeter: %v.", t, t.Area(), t.Perimeter())
}
